package com.letoy.edu.dao;

import com.letoy.edu.entity.MajorInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface MajorInfoMapper {
    int insertMajorInfo(MajorInfo majorInfo);

    int deleteMajorInfo(int majorId);

    int updateMajorInfo(MajorInfo majorInfo);

    MajorInfo getMajorInfoByMajorId(int majorId);

    List<MajorInfo> getAllMajorInfo();

}
